package com.youedata.modular.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 商品图片关联表
 * </p>
 *
 * @author hst
 * @since 2021-08-05
 */
@TableName("goods_info_img_rel")
public class GoodsInfoImgRel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @TableField("goods_id")
    private Long goodsId;

    /**
     * 顶部图片地址
     */
    @TableField("top_img_url")
    private String topImgUrl;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getTopImgUrl() {
        return topImgUrl;
    }

    public void setTopImgUrl(String topImgUrl) {
        this.topImgUrl = topImgUrl;
    }

    @Override
    public String toString() {
        return "GoodsInfoImgRel{" +
        "id=" + id +
        ", goodsId=" + goodsId +
        ", topImgUrl=" + topImgUrl +
        "}";
    }
}
